﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
namespace demo_ver2
{
    public class MySlide
    {
        private List<MyParagraph> listParagraph;

        internal List<MyParagraph> ListParagraph
        {
            get { return listParagraph; }
            set { listParagraph = value; }
        }

        public void addParagraph(MyParagraph _para)
        {
            if(this.listParagraph != null)
                this.listParagraph.Add(_para);
        }
        public MySlide()
        {
            this.listParagraph = new List<MyParagraph>();
        }

        public void BindTextToControl(RichTextBox richTextBox)
        {
            for (int i = 0; i < this.listParagraph.Count; i++)
            {
                this.listParagraph[i].BindTextToControl(richTextBox);
            }
        }
    }
}
